import http from "../request.js";

// 机构上下线
export function organOnlineOrNot(data) {
  return http.request({
    url: "/admin/organ/organOnlineOrNot",
    params: data,
  });
}
// 修改佣金
export function updatePriceRatio(data) {
  return http.request({
    url: "/admin/organ/updatePriceRatio",
    params: data,
  });
}

// 根据机构编号查询机构详情
export function selectOrganByOrganId(data) {
  return http.request({
    url: "/admin/organ/selectOrganByOrganId",
    params: data,
  });
}
// 根据机构编号查询机构详情
export function selectOrganTempByOrganId(data) {
  return http.request({
    url: "/admin/organ/selectOrganTempByOrganId",
    params: data,
  });
}

// 审核机构
export function checkOrganTemp(data) {
  return http.request({
    url: "/admin/organ/checkOrganTemp",
    method: "POST",
    data,
  });
}
// 机构数据分析
export function organDataAnalyse(data) {
  return http.request({
    url: "/admin/organ/organDataAnalyse",
    method: "POST",
    data,
  });
}
// 查询所有审核通过的机构
export function selectOrgan(data) {
  return http.request({
    url: "/admin/organ/selectOrgan",
    method: "POST",
    data,
  });
}
// 查询机构审核列表
export function selectOrganDetailTemp(data) {
  return http.request({
    url: "/admin/organ/selectOrganDetailTemp",
    method: "POST",
    data,
  });
}
